package site.jlopen.assets.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import site.jlopen.secret.config.SecretClientProperties;
import site.jlopen.secret.service.intf.SecretAuthService;

@Configuration
@EnableConfigurationProperties(SecretClientProperties.class)
public class SecretSdkConfig implements CommandLineRunner {

    @Autowired private SecretAuthService secretAuthService;

	@Override
	public void run(String... args) throws Exception {
		secretAuthService.login();
	}
}
